package net.lzzy.practices.services;

import net.lzzy.practices.entities.User;

import java.util.List;
import java.util.UUID;

/**
 *@author lzzy_gxy on 2022/5/9.
 *Description:
 */
public interface UserService {
    User check(String userName,String password);
    boolean isUserNameOccupied(String userName);
    User register(User user);
    List<User> get();
    List<User> get(int page,int size);
    Integer count();
    List<User> search(String kw);
    List<User> getApplying(boolean applying);
    User approveTeacher (UUID id);
    User declineTeacher(UUID id);
    User getById(UUID id);
    User banUser(UUID id);
    String getSalt(String userName);
}
